package com.baibei.order.emptyview;

import android.view.View;

import java.io.Serializable;

/**
 * 空视图资源配置
 * Created by shenminjie on 2017/8/11.
 * mail:shenminjie@100bei.com
 */

public class EmptyResourceInfo implements Serializable {
    /**
     * 资源文件
     */
    private int resource;

    /**
     * 提示语
     */
    private CharSequence charSequence;

    /**
     * 点击回调
     */
    private View.OnClickListener mListener;

    public EmptyResourceInfo(int resource, CharSequence charSequence, View.OnClickListener mListener) {
        this.resource = resource;
        this.charSequence = charSequence;
        this.mListener = mListener;
    }

    public EmptyResourceInfo(int resource, CharSequence charSequence) {
        this.resource = resource;
        this.charSequence = charSequence;
    }

    public EmptyResourceInfo() {
    }

    public int getResource() {
        return resource;
    }

    public void setResource(int resource) {
        this.resource = resource;
    }

    public CharSequence getCharSequence() {
        return charSequence;
    }

    public void setCharSequence(CharSequence charSequence) {
        this.charSequence = charSequence;
    }

    public View.OnClickListener getOnClickListener() {
        return mListener;
    }

    public void setListener(View.OnClickListener mListener) {
        this.mListener = mListener;
    }
}
